package ch8.PC;
//键盘
public class USBKeyboard implements USB {
    private String brand;
    private    double pice;

    public USBKeyboard(String brand, double pice) {
        this.brand = brand;
        this.pice = pice;
    }

    @Override
    public String toString() {
        return "这个键盘的品牌是：" + brand +
                ", 价格是人民币：" + pice + "元。";
    }

    @Override
    public void interposition() {
        System.out.println(this.brand+"键盘插上了电脑USB接口。");
    }

    @Override
    public void work() {
        System.out.println("指示灯亮了，键盘能打字使用了。");
    }

    @Override
    public void insert() {
        System.out.println("键盘拔出了电脑USB接口，指示灯灭了。");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPice() {
        return pice;
    }

    public void setPice(double pice) {
        this.pice = pice;
    }
}
